package com.yzj.android.service.impl;

import com.yzj.Bean.User;
import com.yzj.android.dao.UserDao;
import com.yzj.android.dao.impl.UserDaoImpl;
import com.yzj.android.service.UserService;

public class UserServiceImpl implements UserService {

     UserDao userDao = new UserDaoImpl();


    @Override
    public User userLogin(String name, String password) {
        return userDao.queryUsernameAndPassword(name,password);
    }

    @Override
    public int addUser(User user) {
        return userDao.saveUser(user);
    }
}
